<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ademo01</title>
</head>

<body>
    <h1>欢迎！</h1>
    <h2>遍历元组中的偶数</h2>
    {% for i in tuple %}
    {% if i %2 == 0 %}
    {{i}}
    {% endif %}
    {% endfor %}

    <h2>遍历字典</h2>
    {%for k, v in dict.items()%}
    {{k}}:{{v}}
    {%endfor%}
</body>

</html>